home *** CD-ROM | disk | FTP | other *** search
-
- /*
- There may be additional include files required depending
- upon the compile product you are using. Typical compilers
- include Microsoft C by Microsoft or Turbo C by Boland Int'l.
- */
- #include <stdio.h>
- struct payroll {
- char name[40];
- long ssnumber;
- long salary;
- };
-
- main()
- {
- int i,j;
- struct payroll oneperson[5];
-
- for(i=0; i<5; i++) {
- oneperson[i].salary = 15000;
- oneperson[i].ssnumber = 777777777;
- for(j=0; j<40 ; j++)
- oneperson[i].name[i] = '\0';
- }
- }
-